/*
 * AGENT SHERPA
 *  
 * Assignement 2 of the Agent Oriented Software Engineering Course
 * M.Sc. in Advanced Software Engineering (Part-time)
 * University College Dublin www.ucd.ie
 *
 * Copyright (c) 2007 Chris Walsh, Aidan Morrisy and Iain Hull.
 * All rights reserved.
 */

package org.agentsherpa;


/**
 * Adds for agents requiring map updates.
 * 
 * @author iain
 */
public class MapBroadCastPerceptor extends BasePerceptor {

	@Override
	public void perceive() {
		try {
			ControlAgentModule module = getControlModule();
//			Set<String> agents = module.getAgentsToNotify();
//			if (!agents.isEmpty()) {
//				adoptBelief("BELIEF(mapData(\"" + module.getMapData() + "\"))");
//
//				for (String agent : agents) {
//					adoptBelief("BELIEF(tellAgent("+agent+"))");
//				}
//			}
//			else {
//				adoptBelief("BELIEF(noagents)");
//			}
		}
		catch (PerceptorException e){
			e.printStackTrace();
			return;
		}
	}
}
